<link rel="stylesheet" href="./vanui.css">
<div id="root">
    <h1>列表</h1>
    <van-nav-bar 
    title="首页"
    @click-left="onClickLeftFn"
    @click-right="onClickRightFn"
    >     
    </van-nav-bar>

  
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="./vanui.js"></script>
<script>
const vm = new Vue({
    el: "#root",
    data: {
    },
    methods:{
        onClickLeftFn(){
            console.log('onClickLeftFn');
        },
        onClickRightFn(){
            console.log('onClickRightFn');
        },
      
    }
})
</script>